<?php

namespace app\controller;

use app\BaseController;
use app\controller\model\Config;
use app\controller\model\Tables;
use liliuwei\think\Auth;
use EasyDingTalk\Application;
use think\facade\Session;
use think\facade\Db;

class MobileCode extends BaseController
{
    protected $getpath = "";
    protected $gobaluser = "";
    protected $tables;

    public function __construct($check=true){
        $check?checkuser():'';
        $this->tables=new Tables();
    }
    public function list()
    {
        $list = DB::name($this->tables->code)->order("id desc")->limit(0,100)->select();
        foreach ($list as $k=>$v){
            echo $v['mobile']." - ".$v['code']." - ".$v['addtime']."<br/>";
        }
    }
}
